﻿{include file="public/header" /}
	<form method="post" class="form-x" action="{if $data.id}?id={$data.id}{/if}">
	<div class="panel admin-panel">
		<div class="panel-head"><strong>{:lang('currency')['edit']}</strong></div>
		<br/>
		<script>
			//city canshu
			var pid='{$data.pid}';
			var cid='{$data.cid}';
			var aid='{$data.aid}';
			var selectc=true;
            var selecta=true;
		</script>
		<div class="form-group">
			<div class="label">
				<label>{:lang('currency')['city']}</label>
			</div>
			<div class="field">
				{include file="public/city" /}
			</div>
		</div>
		<div class="form-group">
			<div class="label">
				<label>名称</label>
			</div>
			<div class="field">
				<input type="text" class="input input-auto" id="name" name="name" value="{$data.name}" size="80" placeholder="名称" data-validate="required:{:lang('currency')['required']}" />
			</div>
		</div>
		<div class="form-group">
			<div class="label">
				<label>经度</label>
			</div>
			<div class="field">
				<input type="text" class="input input-auto" id="lng" name="lng" value="{$data.lng}" size="20" placeholder="经度" data-validate="required:{:lang('currency')['required']}" />
			</div>
		</div>
		<div class="form-group">
				<div class="label">
				<label>纬度</label>
			</div>
			<div class="field">
				<input type="text" class="input input-auto" id="lat" name="lat" value="{$data.lat}" size="20" placeholder="纬度" data-validate="required:{:lang('currency')['required']}" />
			</div>
		</div>
		<div class="form-group">
			<div class="label">
				<label>{:lang('label')['status']}</label>
			</div>
			<div class="field">
				<div class="button-group button-group-small radio">
					<label class="button {if $data.status == "1" || !$data.status}active{/if}">
						<input name="status" value="1" {if $data.status == "1" || !$data.status}checked="checked"{/if} type="radio"><span class="icon icon-check"></span> {:lang('currency')['status_1']}
					</label>
					<label class="button {if $data.status == "2"}active{/if}">
						<input name="status" value="2" {if $data.status == "2"}checked="checked"{/if} type="radio"><span class="icon icon-times"></span> {:lang('currency')['status_2']}
					</label>
				</div>
			</div>
		</div>
		<div class="form-button">
			<button class="button bg-main" type="submit">{:lang('form')['submit']}</button>
		</div>
		<br/>
		</div>
	</form>
{include file="public/footer" /}